package com.ruoyi.quartz.task.student;

import com.hhkj.admin.student.service.biz.StudentBizService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定期检查学生过期情况
 *
 * @author ruoyi
 */
@Slf4j
@Component("studentLineDateTask")
public class StudentLineDateTask {
    @Autowired
    private StudentBizService studentBizService;

    /**
     * 每天凌晨一点，检查过期学员，状态改为已过期（status=3）
     */
    public void checkStudentLineDate() {
        log.info("检查过期学员");
        studentBizService.checkStudentLineDate();
    }
}
